package BookManagement.service;

import BookManagement.domain.User;
import org.apache.ibatis.annotations.Select;

import java.util.HashMap;
import java.util.List;

public interface UserService {
    //添加用户，即注册
    public int addUser(User user);
    //管理员根据用户名查找用户
    public User findUserByUsername(String userName);
    //用户名删除用户
    public int deleteUserByUsername(String userName);
    //更新用户
    public int updateUser(User user);
    //更新借书数量
    public int updateBorrowNum(String username);
    public int updateBorrowNum2(String username);

    //用户数量
    public int usercount();

    //查找用户
    public List<User> findAllUsers(HashMap<String,Object> map);


}
